
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Anonym.Data.Entities
{
    /// <summary>
    /// 客户
    /// </summary>
    public class U_Customer
    {
        
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long ID { get; set; } = 0;

        /// <summary>
        /// 客户编号
        /// </summary>
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 公司id
        /// </summary>
        public long CompanyId { get; set; } = 0;

        /// <summary>
        /// 路线id
        /// </summary>
        public long RouteId { get; set; } = 0;

        /// <summary>
        /// 客户姓名
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 联系人
        /// </summary>
        public string ContactName { get; set; } = string.Empty;

        /// <summary>
        /// 联系电话
        /// </summary>
        public string ContactPhone { get; set; } = string.Empty;

        /// <summary>
        /// 客户简称
        /// </summary>
        public string Abbreviation { get; set; } = string.Empty;

        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; } = string.Empty;

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = string.Empty;

        /// <summary>
        /// 客户类型；1:直销     2：分销
        /// </summary>
        public int Type { get; set; } = 0;

        /// <summary>
        /// 状态；0:禁止登陆  1：允许登陆
        /// </summary>
        public int State { get; set; } = 0;

        /// <summary>
        /// 删除标识；0：未删除  1：已删除
        /// </summary>
        public int Deleted { get; set; } = 0;

        /// <summary>
        /// 创建人
        /// </summary>
        public long CreatorUserId { get; set; } = 0;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; } = new DateTime(1900,1,1);

        /// <summary>
        /// 最后一次修改人
        /// </summary>
        public long LastModifierUserId { get; set; } = 0;

        /// <summary>
        /// 最后一次修改时间
        /// </summary>
        public DateTime LastModificationTime { get; set; } = new DateTime(1900,1,1);

    }
}

